package com.joysuch.wwyt.bp.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

@Data
@ApiModel(value = "人员签名")
public class BpWorkSafetySigenerBean implements Serializable {


    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "作业证id")
    // @NotNull(message = "作业证id不能为空")
    private Long certId;

    @ApiModelProperty(value = "作业证类型")
    // @NotNull(message = "作业证类型不能为空")
    private String type;

//    //签名人id
//    @ApiModelProperty(value = "签名人id")
//    //  @NotNull(message = "签名人不能为空")
//    private Long userId;
//    @ApiModelProperty(value = "签名人姓名:返回前端")
//    private String userName;

    //签名状态:0已确认;1不涉及;2不符合
    @ApiModelProperty(value = "措施确认签名状态:0已确认;1不涉及;2不符合")
    //   @NotNull(message = "签名状态不能为空")
    private Integer state;
    private String stateName;

    @ApiModelProperty(value = "签名人,签名日期,图片集合")
    private BpWorkSafetySigenerListBean listBean;
//    //签名日期
//    @ApiModelProperty(value = "签名日期")
//    //  @NotNull(message = "签名日期不能为空")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Date date;
//
//    //签名图片
//    @ApiModelProperty(value = "签名图片")
//    //  @NotNull(message = "签名图片不能为空")
//    private BaseAttachmentBean BaseAttachmentBean;

    //签名分类:0危害辨识;1措施确认;2分析;3确认
    @ApiModelProperty(value = "签名分类:0危害辨识页面;1措施确认页面;2分析页面;3确认页面")
    private Integer categoryId;

    //签名描述
    @ApiModelProperty(value = "签名描述:填写人;措施名称;分析人")
    // @NotNull(message = "措施不能为空")
    private String content;

    //是否同意
    @ApiModelProperty(value = "是否同意:0同意;1不同意")
    private Integer yesOrNo;
    private String yesOrNoName;

}
